/*=============================================================================
#    The element-comm is a tentative program used to test our ideas.           
#                       Copyright (C)  bgao                                    
#
#     This program is free software; you can redistribute it and/or            
#      modify it under the terms of the GNU General Public License             
#     as published by the Free Software Foundation; either version 2           
#         of the License, or (at your option) any later version.               
#
#     This program is distributed in the hope that it will be useful,          
#    but WITHOUT ANY WARRANTY; without even the implied warranty of           
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            
#             GNU General Public License for more details.                    
#
#    You should have received a copy of the GNU General Public License        
#     along with this program; if not, write to the Free Software             
#      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,             
#                       MA  02110-1301, USA.                                  
#==============================================================================
# $Id$ 
#
# $Author$ 
#
# $Revision$ 
#
# $Date$ 
#
# Description: 
#
=============================================================================*/
#ifndef __OPTION_H__
#define __OPTION_H__



//++++++++++++++++++++++++++++++++++++++++++
#define FCLK 200000000
//+++++++++++++++++++++++++++++++++++++++++++
//#define   FCLK 50000000
//#define   HCLK FCLK
//#define   PCLK FCLK
//#define   UCLK FCLK
//==========================================


//#define FCLK 220000000
//#define FCLK 226000000
//#define FCLK 237000000
//#define FCLK 266000000

//========================================
#define HCLK (FCLK/2)
#define PCLK (FCLK/4)
#define UCLK PCLK
//=======================================
// BUSWIDTH : 16,32
#define BUSWIDTH    (32)

//64MB
// 0x30000000 ~ 0x30ffffff : Download Area (16MB) Cacheable
// 0x31000000 ~ 0x33feffff : Non-Cacheable Area
// 0x33ff0000 ~ 0x33ff47ff : Heap & RW Area
// 0x33ff4800 ~ 0x33ff7fff : FIQ ~ User Stack Area
// 0x33ff8000 ~ 0x33fffeff : Not Used Area
// 0x33ffff00 ~ 0x33ffffff : Exception & ISR Vector Table

#define _RAM_STARTADDRESS       0x30000000
#define _NONCACHE_STARTADDRESS	0x31000000
#define _ISR_STARTADDRESS       0x33ffff00     
#define _STACK_BASEADDRESS      0x33ff8000
#define HEAPEND                 0x33ff0000

//If you use ADS1.x, please define ADS10
#define ADS10 FALSE

// note: makefile,option.a should be changed

#endif    //__OPTION_H__
